<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<title>部门编辑</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
</head>
	
<body>
<div class="layui-form" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
	<input type="hidden" name="id" th:value="${zx_data.id}"/>
	<div class="layui-form-item">
		<label class="layui-form-label">所属部门</label>
		<div class="layui-input-block">
		<select name="branchId" lay-search="" id="branch_id">
			<option th:each="vo:${branchList}" th:value="${vo.id}" th:text="${vo.name}" th:selected="${zx_data.branchId eq vo.id}"></option>
		</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">订单名称</label>
		<div class="layui-input-block">
		<input type="text" name="name" th:value="${zx_data.name}" lay-verify="required" placeholder="请输入部门名称" class="layui-input">
		</div>
	</div>
	
	<div class="layui-form-item">
		<label class="layui-form-label">订单金额</label>
		<div class="layui-input-block">
		<input type="text" name="price" th:value="${zx_data.price}" placeholder="请输入订单金额" class="layui-input">
		</div>
	</div>

    <div class="layui-form-item">
		<label class="layui-form-label">状态</label>
		<div class="layui-input-block">
			<select name="status" id="status">
				<option value="0" th:selected="${zx_data.status eq 0}">新建</option>
				<option value="1" th:selected="${zx_data.status eq 1}">已付款</option>
				<option value="2" th:selected="${zx_data.status eq 2}">已取消</option>
			</select>
		</div>
	</div>
	
	<div class="layui-form-item">
		<label class="layui-form-label">备注</label>
		<div class="layui-input-block">
		<textarea name="remark" class="layui-textarea" th:text="${zx_data.remark}"></textarea>
		</div>
	</div>
	
	<div class="layui-form-item layui-hide">
		<input type="button" lay-submit lay-filter="ZX_iframe_submit" id="ZX_iframe_submit" value="确认">
	</div>
</div>
	
<script src="/layuiadmin/layui/layui.js"></script>  
<script language="javascript" src="/layuiadmin/jquery.min.js"></script>
<script>
	layui.config({
		base: '/layuiadmin/' //静态资源所在路径
	}).extend({
		index: 'lib/index' //主入口模块
	}).use(['index', 'form'], function(){
		var $ = layui.$,
		form = layui.form;
	})
</script>
</body>
</html>